#pragma once
#include "Prop.h"
#include "../particles/Emitter.h"
class CPowerUp 
	: public CProp
{
public:
	enum PowerUpType{PUP_GOALIE, PUP_NOAGGRO, PUP_POISON, PUP_ABILITYCHARGE,
					 PUP_KNOCKBACK, PUP_GOALSIZE, PUP_TRAPCHANGE, PUP_SLOWPULSE,
					 PUP_STEAL};

	CPowerUp();
	~CPowerUp();
	void Update(float elapsedTime) override;
	void Effect();
	int	GetType() const override { return ENT_PUP; }
	void SetType(int type)	{ m_eType = (PowerUpType)type; }	
	PowerUpType GetTypeofPowerUp() { return m_eType; }

	void SetOwner(Entity* o);


private:
	PowerUpType m_eType;
	float m_fDespawnTimer = 8.0f;
	float m_fHeldTimer = 10.0f;
	Entity* owner = nullptr;
	CEmitter * pEffect;

};

